package com.baizhi.struts2;

import com.opensymphony.xwork2.Action;

/**
 * ClassName: RegAction
 * Description:
 * Date: 2022/11/24 PM 2:01:39
 * <p>
 * project: spring5
 * package: com.baizhi.struts2
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class RegAction implements Action {
    private UserService userService;

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    @Override
    public String execute() throws Exception {
        userService.register();
        return Action.SUCCESS;
    }
}
